package com.medi.chats.dao;

import com.medi.chats.model.McUserBuy;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface McUserBuyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(McUserBuy record);

    int insertSelective(McUserBuy record);

    McUserBuy selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McUserBuy record);

    int updateByPrimaryKey(McUserBuy record);


    /******************************************************************************************************************/
    /******************************************************************************************************************/
    /***************************************************下面是扩展方法*************************************************/
    /******************************************************************************************************************/
    /******************************************************************************************************************/

    McUserBuy selectByUserItemType(Map map);

    List<McUserBuy> selectBuyListByItemType(Map map);
}